package com.qf.gdbh;

public class ZSimpl implements ZS {
    @Override
    public boolean isPrime(int num) {
        if (num == 1) return false;

        for (int i = 2; i < num; i++) {
            if (num % i == 0) return false;
        }

        return true;
    }
}
